<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : Reserva
    Created on : 07-jun-2008, 11:18:11
    Author     : Aditardo
    -->
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <SCRIPT type="text/JAVASCRIPT">
 


        function GetRadioValue( ) { 
           var ver1, ver2
           alert(document.getElementById("form1:stHor_Tar_Fin").value())
           
           ver1 = document.getElementById("form1:radioTurn_0").checked 
               
           ver2 = document.getElementById("form1:radioTurn_1").checked 
           
           
           if (ver1 ==true){
               
               
              
               
           } else if (ver2 == true){
               document.getElementById('form1:dcalendar').style["display"] = ""
               document.getElementById('form1:despecialidades').style["display"] = "none"
              
               
               //left: 360px; top: 312px
               
           }else{
               document.getElementById('form1:dcalendar').style["display"] = "none"
               document.getElementById('form1:despecialidades').style["display"] = ""
              
           }
         
        } 


    </SCRIPT>
    <f:view>
        <ui:page id="page1">
            <ui:html id="html1">
                <ui:head id="head1"/>
                <ui:body focus="form1:ddlEspecialidades" id="body1" imageURL="/resources/fondo.JPG" style="background-color: rgb(255, 255, 255); -rave-layout: grid">
                    <ui:form id="form1">
                        <br/>
                        <ui:image id="image1" style="left: 312px; top: 528px; position: absolute" url="/img/bg_footer.gif" width="792"/>
                        <ui:image id="image2" style="left: 312px; top: 0px; position: absolute" url="/img/header.jpg"/>
                        <ui:image height="75" id="image3"
                            style="border-width: 7px 6px 6px 6px; border-style: groove; border-color: rgb(153, 204, 255) rgb(153, 204, 255) rgb(153, 204, 255) rgb(153, 204, 255); left: 336px; top: 24px; position: absolute"
                            url="/resources/LOGO_INICIO.JPG" width="168"/>
                        <ui:hyperlink action="#{Reserva.jliReserva1_action}" id="jliReserva1"
                            style="background-image: url(./resources/bg_head_top.jpg); color: rgb(0, 0, 0); font-family: 'Tahoma'; font-size: 12px; font-weight: bold; left: 792px; top: 120px; position: absolute; text-decoration: underline overline; width: 90px"
                            text="Menu Principal" url="/faces/Menu.jsp"/>
                        <ui:hyperlink action="#{Reserva.jliSalir_action}" id="jliSalir1"
                            style="background-image: url(./resources/bg_head_top.jpg); color: rgb(0, 0, 0); font-family: 'Tahoma'; font-size: 12px; font-weight: bold; left: 1056px; top: 120px; position: absolute; text-decoration: underline overline"
                            text="Salir" url="/faces/Login.jsp"/>
                        <ui:hyperlink id="jliCambia1"
                            style="background-image: url(./resources/bg_head_top.jpg); color: rgb(0, 0, 0); font-family: 'Tahoma'; font-size: 12px; font-weight: bold; left: 912px; top: 120px; position: absolute; text-decoration: underline overline; width: 94px"
                            text="Cambiar datos" url="/faces/CambiarDatos.jsp"/>
                        <ui:label id="label1"
                            style="color: rgb(255, 255, 255); font-family: 'Arial','Helvetica',sans-serif; font-size: 18px; font-weight: bold; left: 864px; top: 24px; position: absolute; width: 240px" text="Reserva de Citas  On Line "/>
                        <ui:label id="label2" style="left: 384px; top: 528px; position: absolute" text="Fundacion Ayuda"/>
                        <ui:label id="label3" style="height: 8px; left: 816px; top: 528px; position: absolute; width: 166px" text="Desarrollo: By CPCM 2008"/>
                        <ui:panelLayout id="layoutPanel1" style="background-color: rgb(255, 255, 255); height: 358px; left: 312px; top: 168px; position: absolute; width: 790px; -rave-layout: grid">
                            <ui:label id="label12"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 240px; position: absolute" text="Turno Máximos:"/>
                            <ui:staticText binding="#{Reserva.jtsCodigo1}" id="jtsCodigo1"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 144px; top: 288px; position: absolute; width: 70px" visible="false"/>
                            <ui:label id="label5"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 24px; position: absolute" text="Paciente:"/>
                            <ui:staticText binding="#{Reserva.stNomPac}" id="stNomPac" style="left: 144px; top: 24px; position: absolute; width: 262px" text="#{SessionBean1.pacienteMy.pacNombre}"/>
                            <ui:label id="label6"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 120px; position: absolute" text="Especialidad:"/>
                            <ui:dropDown binding="#{Reserva.ddlEspecialidad}" id="ddlEspecialidad" items="#{SessionBean1.opcionesDDL}"
                                onChange="common_timeoutSubmitForm(this.form, 'layoutPanel1:ddlEspecialidad');" selected="#{SessionBean1.espeSession.espCod}"
                                style="left: 144px; top: 120px; position: absolute; width: 263px" valueChangeListener="#{Reserva.ddlEspecialidad_processValueChange}"/>
                            <ui:dropDown binding="#{Reserva.ddlProfesionales}" id="ddlProfesionales" items="#{Reserva.ddlProfesionalesDefaultOptions.options}"
                                onChange="common_timeoutSubmitForm(this.form, 'layoutPanel1:ddlProfesionales');" selected="#{SessionBean1.proSession.proCodigo}"
                                style="left: 528px; top: 120px; position: absolute; width: 241px" styleClass="/resources/stylesheet.css" visible="false"/>
                            <ui:label id="label4"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 432px; top: 120px; position: absolute" text="Profesional:"/>
                            <ui:staticText binding="#{Reserva.jtfHora}" id="jtfHora"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 264px; top: 264px; position: absolute; width: 69px" visible="false"/>
                            <ui:label id="label10"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 192px; top: 264px; position: absolute" text="Mañana de"/>
                            <ui:label id="label11"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 264px; position: absolute" text="Horario del Profesional:"/>
                            <ui:staticText binding="#{Reserva.jtfHoraFin}" id="jtfHoraFin"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 384px; top: 264px; position: absolute; width: 117px" visible="false"/>
                            <ui:label id="label8"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 432px; top: 168px; position: absolute"
                                text="Reserva Nro.:" visible="false"/>
                            <ui:staticText binding="#{Reserva.jtsNumTurn}" id="jtsNumTurn"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 552px; top: 168px; position: absolute; width: 22px" text="1" visible="false"/>
                            <ui:label id="label9"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 72px; position: absolute" text="Fecha de Cita:"/>
                            <ui:calendar binding="#{Reserva.calendar1}" columns="14" id="calendar1"
                                onChange="common_timeoutSubmitForm(this.form, 'layoutPanel1:calendar1');" style="color: rgb(0, 0, 0); font-family: 'Tahoma'; font-size: 12px; left: 144px; top: 72px; position: absolute"/>
                            <ui:pageSeparator id="pageSeparator1" style="height: 8px; left: 24px; top: 168px; position: absolute; width: 743px"/>
                            <ui:label id="label14"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 240px; top: 216px; position: absolute" text="** DATOS DEL PROFESIONAL SELECCIONADO **"/>
                            <ui:label id="label15"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 264px; position: absolute"
                                text="Especialidad:" visible="false"/>
                            <ui:staticText binding="#{Reserva.lblEspecialidad}" id="lblEspecialidad"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 144px; top: 264px; position: absolute; width: 213px" visible="false"/>
                            <ui:label id="label16"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 240px; position: absolute"
                                text="Nombres:" visible="false"/>
                            <ui:staticText binding="#{Reserva.lblNomProfesional}" id="lblNomProfesional"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 144px; top: 240px; position: absolute; width: 213px" visible="false"/>
                            <ui:staticText binding="#{Reserva.lblTurnosMaximo}" id="lblTurnosMaximo"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 144px; top: 240px; position: absolute; width: 93px" visible="false"/>
                            <ui:staticText binding="#{Reserva.lblHorario}" id="lblHorario"
                                style="font-family: 'Tahoma'; font-size: 12px; left: 624px; top: 264px; position: absolute; width: 141px" visible="false"/>
                            <ui:staticText binding="#{Reserva.staticText}" id="staticText" style="left: 648px; top: 24px; position: absolute; width: 96px" text="#{SessionBean1.usuturnSession.ustLogin}"/>
                            <ui:label id="label7"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 504px; top: 24px; position: absolute" text="Cédula:"/>
                            <ui:label id="label17"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 288px; position: absolute"
                                text="Registro Nro.:" visible="false"/>
                            <ui:label binding="#{Reserva.labelEXITO}" id="labelEXITO"
                                style="color: rgb(0, 204, 51); left: 216px; top: 312px; position: absolute" text="Label" visible="false"/>
                            <ui:label id="label18" style="left: 624px; top: 264px; position: absolute" text="a"/>
                            <ui:button action="#{Reserva.button_action}" id="button1"
                                style="font-weight: bold; height: 24px; left: 671px; top: 168px; position: absolute; width: 96px" text="Enviar Reserva"/>
                            <ui:label id="label19" style="left: 504px; top: 264px; position: absolute" text="Tarde de"/>
                            <ui:label id="label20" style="left: 360px; top: 264px; position: absolute" text="a"/>
                            <ui:staticText binding="#{Reserva.stHor_Tar_Inicio}" id="stHor_Tar_Inicio" style="left: 576px; top: 264px; position: absolute"/>
                            <ui:staticText binding="#{Reserva.stHor_Tar_Fin}" id="stHor_Tar_Fin" style="left: 648px; top: 264px; position: absolute" visible="false"/>
                            <ui:label binding="#{Reserva.labelNO}" id="labelNO"
                                style="color: rgb(204, 0, 51); left: 264px; top: 312px; position: absolute; width: 203px" text="Label" visible="false"/>
                            <ui:radioButtonGroup binding="#{Reserva.radioTurn}" columns="2" id="radioTurn" items="#{Reserva.radioTurnDefaultOptions.options}"
                                onClick="GetRadioValue()" required="true" style="left: 144px; top: 168px; position: absolute" visible="false"/>
                            <ui:label id="label21"
                                style="color: rgb(51, 51, 51); font-family: 'Tahoma'; font-size: 12px; left: 24px; top: 168px; position: absolute" text="Seleccione Jornada:"/>
                        </ui:panelLayout>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
